package com.mingzhi.lotterysystem.service;

import com.mingzhi.lotterysystem.controller.param.CreatePrizeParam;
import com.mingzhi.lotterysystem.controller.param.PageParam;
import com.mingzhi.lotterysystem.dao.dataobject.PrizeDO;
import com.mingzhi.lotterysystem.service.dto.PageListDTO;
import com.mingzhi.lotterysystem.service.dto.PrizeDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.multipart.MultipartFile;

public interface PrizeService {

    /**
     * 创建单个奖品
     *
     * @param param    奖品属性
     * @param prizePic 奖品图片
     * @return 奖品id
     */
    Long createPrize(CreatePrizeParam param, MultipartFile prizePic);

    /**
     * 通用写法
     * 翻页查询列表
     *
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);


}
